﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Parturition.Domain.Migrations
{
    public partial class 添加羔羊登记 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "LambRegistrationModel",
                columns: table => new
                {
                    LambRegistrationId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    BirthDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    FatherEar = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    FatherBreed = table.Column<int>(type: "int", nullable: false),
                    MotherEar = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    MotherBreed = table.Column<int>(type: "int", nullable: false),
                    LambBreed = table.Column<int>(type: "int", nullable: false),
                    LambStage = table.Column<int>(type: "int", nullable: false),
                    CommodityCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Sex = table.Column<bool>(type: "bit", nullable: false),
                    BirthState = table.Column<int>(type: "int", nullable: false),
                    ProgenyEar = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    BirthWeight = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Tooth = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Hair = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Stain = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    HoofColor = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    MouthColor = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Angle = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    FatDistribution = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CreateBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdateBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_LambRegistrationModel", x => x.LambRegistrationId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "LambRegistrationModel");
        }
    }
}
